<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
import OrderEvent from "@/mixin/orderEvent";
export default {
  mixins: [
    Vue.prototype.$vFN.Mixins.Base,
    Vue.prototype.$vFN.Mixins.List,
    OrderEvent,
  ],
  props: ["userId"],
  data() {
    return {
      appWindow: window,
      current: 1,

      apiUrl: {
        list: "mall-site-portal/order/list",
      },

      mixinList_tableSearchConst: {
        memberId: "",
        orderType: "",
      },
    };
  },
  mounted() {
    this.init();
  },
  methods: {
    init() {
      this.mixinList_loading = false;
      this.mixinList_tableSearchConst.memberId = this.userId;
      this.mixinList_tableSearchConst.orderType = this.current;

      this.mixinList_getTable();
    },

    change() {
      this.mixinList_tableSearchConst.orderType = this.current;
      this.mixinList_getTable(1);
    },
  },
};
</script>
